package com.fenqing.utils;

import cn.hutool.json.JSONUtil;

/**
 * @author fenqing
 */
public class StringToStringArrayEncoder implements Encoder<String, String[]> {

    public StringToStringArrayEncoder() {
    }

    @Override
    public String[] encoder(String input) {
        return (String[]) JSONUtil.parseArray(input).toArray(String[].class);
    }
}